package com.etc.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



/**
 * @Author kalista
 * @Description
 * @Date 2021/5/13  17:03
 **/
@RestController
@RequestMapping("/payment")
public class PaymentController {


    @GetMapping("/ok/{id}")
    public Integer ok(@PathVariable("id") Integer id){

        return id;
    }

    @GetMapping("/timeout")
    public String timeout(){
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return "success";
    }



}
